package com.bootdo.lvyou.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 景点路线
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-10-09 16:35:39
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class LvyouScenicRoute extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//id
	 @NotColumn 	@HapiFeild("id")
	private Long id;
	
	//名字
		@HapiFeild("名字")
	private String name;
	
	//景点ID
		@HapiFeild("景点ID")
	private Long spotId;
	
	//景点名字
		@HapiFeild("景点名字")
	private String spotName;
	
	//标记数量
		@HapiFeild("标记数量")
	private Integer spotNum;
	
	//时长
		@HapiFeild("时长")
	private String useTime;
	
	//创建时间
		@HapiFeild("创建时间")
	private Date createTime;


	private Long userId;
	private String userName;

    public LvyouScenicRoute(){
    
    	this.createTime = new Date();
    }

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * 设置：id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：名字
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：名字
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：景点ID
	 */
	public void setSpotId(Long spotId) {
		this.spotId = spotId;
	}
	/**
	 * 获取：景点ID
	 */
	public Long getSpotId() {
		return spotId;
	}
	/**
	 * 设置：景点名字
	 */
	public void setSpotName(String spotName) {
		this.spotName = spotName;
	}
	/**
	 * 获取：景点名字
	 */
	public String getSpotName() {
		return spotName;
	}
	/**
	 * 设置：标记数量
	 */
	public void setSpotNum(Integer spotNum) {
		this.spotNum = spotNum;
	}
	/**
	 * 获取：标记数量
	 */
	public Integer getSpotNum() {
		return spotNum;
	}
	/**
	 * 设置：时长
	 */
	public void setUseTime(String useTime) {
		this.useTime = useTime;
	}
	/**
	 * 获取：时长
	 */
	public String getUseTime() {
		return useTime;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}


	@Override
	@JsonIgnore
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
